package com.zmsoft.boxy.sfg.player;

import org.cnsoft.framework.cache.session.SessionHelper;
import org.cnsoft.persistent.player.BoxyPlayer;

/**
 * 游戏玩家信息
 */
public class BoxySFGPlayer extends BoxyPlayer {

	// 1玩家操作：id、userid代表当前操作的目标对象
	// 2玩家互动：id代表操作对象，userid代表发起人

	/**
	 * 好友ID
	 */
	private String playerFriendId = null;
	
	/**
	 * 土地ID
	 */
	private String playerLandId = null;

	/**
	 * 物品ID
	 */
	private String playerPropId = null;

	public String getPlayerFriendId() {
		return playerFriendId;
	}

	public void setPlayerFriendId(String playerFriendId) {
		this.playerFriendId = playerFriendId;
	}

	public String getPlayerLandId() {
		return playerLandId;
	}

	public void setPlayerLandId(String playerLandId) {
		this.playerLandId = playerLandId;
	}

	public String getPlayerPropId() {
		return playerPropId;
	}

	public void setPlayerPropId(String playerPropId) {
		this.playerPropId = playerPropId;
	}

	public BoxySFGPlayer init() {
//		this.setId(SessionHelper.currentUserId());
		this.setUserId(SessionHelper.currentUserId());
		this.setUserName(SessionHelper.currentUser().getUserName());

		return this;
	}
}
